package cn.com.lms.business.user.persistence.entity;

import com.bnzj.core.persistence.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: 16266
 * @DateTime: 2020/3/27 17:19
 * @Description: 同步数据用户映射
 */
@Getter
@Setter
@ToString(callSuper = true)
@Entity
@Table(name = "bnz_sys_user")
@Schema(description = "用户")
public class SysUserVo extends BaseEntity {

    private static final long serialVersionUID = -4713894993851093760L;

    @Schema(description = "工号")
    private String account;

    @Schema(description = "姓名")
    private String cname;

    @Schema(description = "英文名")
    private String ename;

    @Schema(description = "性别")
    private String sex;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号码")
    private String phone;

    @Schema(description = "密码")
    @JsonIgnore
    private String password;

    @Schema(description = "身份证号码")
    private String identity;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "员工部门全称")
    private String fullDeptName;

    @Schema(description = "员工岗位")
    private String position;

    @Schema(description = "员工状态")
    private Boolean personnel;//员工状态

    @Schema(description = "账号是否启用")
    private Boolean enabled;//账号是否启用

    @Schema(description = "账号类型(内部员工是A，与供应商员工是B)")
    private String type;//账号类型(内部员工是A，与供应商员工是B)

    @Schema(description = "关联ID(内部员工不需要关联ID，供应商员工才需要)")
    private Long linkId;//关联ID(内部员工不需要关联ID，供应商员工才需要)

    @Schema(description = "是否备案 0:未备案 1：备案")
    private String isRecord;

    @Schema(description = "岗位分类")
    private String jobTypeName;

    @Schema(description = "入职日期")
    private Date entryDate;
    @Schema(description = "一级部门")
    private String firstLevelDept;


}
